import { ActiveBaseIcon } from "../activity/icon/ActiveBaseIcon";
import { ResFileConst } from "../../resource/ResFileConst";
import { Dispatcher } from "../../../mvc/core/Dispatcher";
import { DataEvent } from "../../events/DataEvent";
import { EventName } from "../../mvc/EventName";
import { HighlightManager } from "../../manager/HighlightManager";
//class TimeLimitsGiftIcon
    
    export  class TimeLimitsGiftIcon extends ActiveBaseIcon
    {
        constructor(arg1: string=null)
        {
            super(ResFileConst.TimeLimitsIcon);
            return;
        }

        protected /* override */ onMouseClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.OnClickTimeLimtsIcon));
            return;
        }

        public addHighLightEffect(): void
        {
            HighlightManager.instance.glowEffectButton(this, true);
            return;
        }

        public removeHighLightEffect(): void
        {
            HighlightManager.instance.glowEffectButton(this, false);
            return;
        }
    }
